Skip to content

Conversation

@aepfli
Copy link
Member

@aepfli aepfli commented Nov 11, 2025

We need to wait for open-feature/flagd#1818 as it seems like it is not 100% defined if we need an env var or not.

@aepfli aepfli requested a review from a team as a code owner November 11, 2025 07:47
@gemini-code-assist
Copy link

Summary of Changes

Hello @aepfli, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the configuration documentation and associated test scenarios. It introduces a new fatalStatusCodes configuration option to manage gRPC stream error handling, ensuring that the system can be configured to react appropriately to specific gRPC status codes. Additionally, it refines the wording of existing configuration explanations and a connection scenario step, aiming for greater clarity and precision in both documentation and behavior definition.

Highlights

  • New Configuration Option: Introduced the fatalStatusCodes configuration option, allowing specification of gRPC status codes that trigger a PROVIDER_FATAL state.
  • Improved Wording and Clarity: Enhanced the explanations for various configuration options in the documentation table for better understanding.
  • Updated Configuration Scenarios: Integrated the new fatalStatusCodes option into existing Gherkin scenarios to cover default, explicit, environment variable, and combined configuration testing.
  • Refined Scenario Step: Adjusted the wording in a connection feature scenario for improved clarity regarding the client's fatal state.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the fatalStatusCodes configuration option by updating the Gherkin feature files with documentation and new test steps. It also improves the wording in one of the connection scenarios. The changes look good overall, but I've found a Gherkin syntax error in the configuration table and a potential inconsistency in the documentation for the new option. Please see my detailed comment.

And a error event handler
Then the error event handler should have been executed within 5000ms
And the client is in fatal state
And the client should be in fatal state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use "provider" instead of "client"? In my understanding, the state of the provider (which the client is connected to) should be fatal, not the client itself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends, on how you check this. There has been already some discussion about this. if we call it provider we would need to wait for the event listener to run with an fatal event, which is currently not the case. But we can check on the client what state it has (it will use the provider state). Anyways providers are theoretically stateless, and the client is managing the state. So i think we are fine here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Just mentioned it because it confused me at first as in java the corresponding client method is getProviderState().

Copy link
Contributor

@alexandraoberaigner alexandraoberaigner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve but pls consider my question above :)

@aepfli aepfli merged commit c1f632b into main Nov 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants